-- GENERATED SPELL FOR [Vile Fin Muckdweller] --


function spell0_1545(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1545', 537, 1)
end

function Sorts_1545(pUnit, Event)
local choix_sorts_1545 = math.random(0, 0)
if choix_sorts_1545 == 0 then
pUnit:RegisterEvent('spell0_1545', 1, 1)
end
end

function mob1545_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1545', math.random(1500, 3000), 1)
end

function mob1545_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1545_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1545_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1545, 1, 'mob1545_Action')
RegisterUnitEvent(1545, 2, 'mob1545_Leave')
RegisterUnitEvent(1545, 3, 'mob1545_Kill')
RegisterUnitEvent(1545, 4, 'mob1545_Die')
